import request from '../util/request.js'
import  config from '../util/config.js'
let ContentCategoryRequest = {
    baseUrl: config.baseUrl + "/cms",
    getCategory(callBack){
        request.get(this.baseUrl + "/contentCategory/list",{},callBack);
        //request.get( "http://localhost:8080/contentCategory/list",{},callBack);
    },
    save(category,callBack){
        request.post(this.baseUrl + "/contentCategory/save",category,callBack);
        //request.post("http://localhost:8080/contentCategory/save",category,callBack);
    },
}
export default ContentCategoryRequest;